<template>
	<view>
		<view v-for="(item,index) in list" :key="item.id" style="padding: 0 30rpx;">
			<view @tap="link(item.id)" style="background-color: #fff; line-height: 90rpx; margin-bottom: 20rpx; padding: 0 20rpx; border-radius: 10rpx; display: flex; justify-content: space-between; align-items: center;">
				<text>{{item.name}}</text>
				<text>></text>
			</view>
		</view>
	</view>
</template>

<script>
	import u from '../../utils/common.js'
	export default {
		data() {
			return {
				list: [{
					id: 1,
					name: '管理员申请列表'
				}, {
					id: 2,
					name: '自定义表单设置'
				}, {
					id: 3,
					name: '全部活动列表'
				}, {
					id: 4,
					name: '清除缓存'
				}]
			};
		},
		onLoad() {
			this.$comm.appLogin(user_info=>{
			})
		},
		methods: {
			link(id) {
				if (id == 1) {
					uni.navigateTo({
						url: 'supremeadmin'
					})
				} else if (id == 2) {
					uni.navigateTo({
						url: 'from'
					})
				} else if (id = 3) {
					uni.navigateTo({
						url: 'activitylist'
					})
				} else if (id == 4) {
					uni.navigateTo({
						url: 'clear'
					})
				}
			}
		}
		
	}
</script>

<style lang="scss" scoped>
	page {
		font-size: 32rpx;
		background-color: #F5F5F5;
		padding-top: 50rpx;
	}
</style>
